package club.justwill.single.persistence.support;

import club.justwill.single.persistence.jpo.OrderItem;

import javax.persistence.Column;
import javax.persistence.MappedSuperclass;

/**
 * Created by luoyu on 15-12-24.
 */

@MappedSuperclass
public class OrderItemBase extends Jpo {

    @Column(name = "units")
    private Integer units;

    protected void copyBase(OrderItem other) {
        setUnits(other.getUnits());
    }

    public Integer getUnits() {
        return units;
    }

    public void setUnits(Integer units) {
        this.units = units;
    }
}
